import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index'
import './mock/index' // 引入mockjs

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import * as Icons from '@element-plus/icons-vue'

import mUI from '../packages'
// 引入自定义图标
import './assets/fonts/iconfont.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn';

import "animate.css";

const app = createApp(App)


// 全局注册图标
for (let i in Icons) {
    const icons = Icons as any;
    app.component(`ele-${icons[i].name}`, icons[i]);
}

app.use(router).use(ElementPlus,{ size: 'default', zIndex: 3000, locale:zhCn }).use(mUI)
app.mount('#app')
